home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / alsa / cards / CMI8788.conf < prev    next >
Encoding:
Text File  |  2009-03-29  |  1.7 KB  |  134 lines

  1. #
  2. # Configuration for the CMI8788 chip
  3. #
  4.  
  5. <confdir:pcm/front.conf>
  6.  
  7. CMI8788.pcm.front.0 {
  8.     @args [ CARD ]
  9.     @args.CARD {
  10.         type string
  11.     }
  12.     type hw
  13.     card $CARD
  14. }    
  15.  
  16. # default with dmix+softvol & dsnoop
  17. CMI8788.pcm.default {
  18.     @args [ CARD ]
  19.     @args.CARD {
  20.         type string
  21.     }
  22.     type asym
  23.     playback.pcm {
  24.         type plug
  25.         slave.pcm {
  26.             type softvol
  27.             slave.pcm {
  28.                 @func concat
  29.                 strings [ "dmix:" $CARD ",FORMAT=S32_LE" ]
  30.             }
  31.             control {
  32.                 name "PCM Playback Volume"
  33.                 card $CARD
  34.             }
  35.         }
  36.     }
  37.     capture.pcm {
  38.         type plug
  39.         slave.pcm {
  40.             @func concat
  41.             strings [ "dsnoop:" $CARD ",FORMAT=S32_LE" ]
  42.         }
  43.     }
  44. }
  45.  
  46. <confdir:pcm/surround40.conf>
  47.  
  48. CMI8788.pcm.surround40.0 {
  49.     @args [ CARD ]
  50.     @args.CARD {
  51.         type string
  52.     }
  53.     type hw
  54.     card $CARD
  55.     channels 4
  56. }    
  57.  
  58.  
  59. <confdir:pcm/surround41.conf>
  60. <confdir:pcm/surround50.conf>
  61. <confdir:pcm/surround51.conf>
  62.  
  63. CMI8788.pcm.surround51.0 {
  64.     @args [ CARD ]
  65.     @args.CARD {
  66.         type string
  67.     }
  68.     type hw
  69.     card $CARD
  70.     channels 6
  71. }    
  72.  
  73. <confdir:pcm/surround71.conf>
  74.  
  75. CMI8788.pcm.surround71.0 {
  76.     @args [ CARD ]
  77.     @args.CARD {
  78.         type string
  79.     }
  80.     type hw
  81.     card $CARD
  82.     channels 8
  83. }    
  84.  
  85. <confdir:pcm/iec958.conf>
  86.  
  87. CMI8788.pcm.iec958.0 {
  88.     @args [ CARD AES0 AES1 AES2 AES3 ]
  89.     @args.CARD {
  90.         type string
  91.     }
  92.     @args.AES0 {
  93.         type integer
  94.     }
  95.     @args.AES1 {
  96.         type integer
  97.     }
  98.     @args.AES2 {
  99.         type integer
  100.     }
  101.     @args.AES3 {
  102.         type integer
  103.     }
  104.     type asym
  105.     playback.pcm {
  106.         type hooks
  107.         slave.pcm {
  108.             type hw
  109.             card $CARD
  110.             device 1
  111.         }
  112.         hooks.0 {
  113.             type ctl_elems
  114.             hook_args [
  115.                 {
  116.                     interface PCM
  117.                     device 1
  118.                     name "IEC958 Playback PCM Stream"
  119.                     lock true
  120.                     preserve true
  121.                     value [ $AES0 $AES1 $AES2 $AES3 ]
  122.                 }
  123.             ]
  124.         }
  125.     }
  126.     capture.pcm {
  127.         type hw
  128.         card $CARD
  129.         device 1
  130.     }
  131. }
  132.  
  133. # vim: ft=alsaconf
  134.